<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class templates{
    
    protected  $codeigniterCore;
    protected  $title;
    protected  $js = array();
    public  $style = array();
    protected $content;


    public function __construct() {
        //session_start();
        $this->codeigniterCore = &get_instance();
        $this->title = "";
    }
    
    public  function rander(){
        require_once  ("application/views/templates/header.php");
        echo $this->content;
        require_once ("application/views/templates/bottom.php");
        return $this;
    }
    
    public function setTitle( $title ){
        $this->title = $title;
         return $this;;
    }
    
    public function appendJs( $js_name ){
        $this->js[] = $js_name;
         return $this;;
    }
    
    public function appendStyle( $css_name ){
        $this->style[] = $css_name;
         return $this;
    }
    
    public function setContent( $html ){
        $this->content = $html;
         return $this;;
    }
    
}
?>
